package com.tensquare.entity;

import lombok.Data;

import java.util.List;

/**
 * 用于返回分页结果
 * @param <T>
 */
@Data
public class PageResult<T> {

  private long total;

  private List<T> rows;

  public PageResult(long total, List<T> rows) {
    this.total = total;
    this.rows = rows;
  }
}
